Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: time range for umap #319

Merged
merged 2 commits into from
Mar 2, 2023
Merged

fix: time range for umap #319

merged 2 commits into from
Mar 2, 2023

Conversation

RogerHYang
Copy link
Contributor

resolves #311

Copy link
Contributor

@mikeldking mikeldking left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks! You can actually click on the timeseries graph now to test this out.

src/phoenix/metrics/timeseries.py Outdated Show resolved Hide resolved
src/phoenix/server/api/types/EmbeddingDimension.py Outdated Show resolved Hide resolved
Comment on lines +206 to +220
(
()
if dataset is None
else (
(
EventId(row_id, dataset_id),
dataset.get_embedding_vector_column(self.name).iloc[row_id],
)
for row_id in range(
*row_interval_from_sorted_time_index(
dataset.dataframe.index, start=time_range.start, end=time_range.end
)
)[:n_samples]
)
)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I know this is black formatting but something about this way of iterating is pretty hard to read. Non blocking but is there a way this can be made slightly easier to read?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

i have some ideas for syntax sugar for time filtering in general. will do that in a follow-up PR.

@RogerHYang RogerHYang merged commit e7f288d into main Mar 2, 2023
@RogerHYang RogerHYang deleted the time-filter-for-umap branch March 2, 2023 05:12
@axiomofjoy
Copy link
Contributor

lgtm

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

UMAPPoints is not respecting the timeRange input
3 participants